// common/event-bus.js
import Vue from 'vue'
const EventBus = new Vue()
export const EventBridge = {
  eventName: {
    closeLabel: 'closeLabel',
    openLabel: 'openLabel',
    showDetailLabel: 'showDetailLabel',
  },
  on(name, fn) {
    EventBus.$on(name, fn)
  },
  emit(name, data) {
    EventBus.$emit(name, data)
  },
}
